package com.newway.back.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.newway.common.result.BaseEntity;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("order_record")
public class OrderRecord extends BaseEntity {


    @TableId
    private Integer id;

    private Integer productId;

    private Integer num;

    private Integer price;

    private String userId;

    //1已支付 2已取消 3 已完成
    private String status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    private String orderNo;

    private String productName;

    //收货人
    private String userName;

    //收货人手机号
    private String phoneNo;

    //收获地址
    private String address;
}
